package cn.com.enersun.iec61850;

import cn.com.enersun.iec61850.integratedDataProcessing.IntegratedDataProcessing;
import org.openmuc.openiec61850.ServiceError;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.IOException;

/**
 * Created by lionel on 2017/4/19.
 */

@SpringBootApplication
public class SampleApplication implements CommandLineRunner {
    @Autowired
    private IntegratedDataProcessing integratedDataProcessing;

    public static void main(String[] args) throws IOException, ServiceError {
        SpringApplication.run(SampleApplication.class, args);
    }

    @Override
    public void run(String... strings) throws Exception {
        integratedDataProcessing.init();
    }
}
